<%if(@is_admin)%>
<%form_for(order, :url => {:action => 'update', :controller => 'admin/orders', :method => 'post'}) do |f|%>
<tr>
	<td align="left"><%=link_to order.id, edit_admin_orders_path(:id => order.id)%></td>
	<td align="left"><%if(order.user?) then%>
			<%=link_to order.user.name, show_admin_users_path(:id => order.user.id)%>
			<%else%>
			gast
		<%end%>
	</td>
	<td align="left"><%=format_date(order.created_at)%></td>
	<td align="left"><%=f.select(:status, get_status_for_select_box(order.status), {:selected => order.status.to_s},{:onchange => 'this.form.submit()'})%></td>
	<td align="left"><%if(order.payment_type == 1)%>
	Creditcard
	<%elsif(order.payment_type == 2)%>
	Op rekening
	<%else%>
	<%=order.payment_type%>
	<%end%></td>
</tr>
<%=f.hidden_field(:id, :value => order.id)%>
<%end%>
<%end%>